From d8d1f1f6c57a395892fc3e3a39075e1079c1b9bd Mon Sep 17 00:00:00 2001 From: "root@kct" Date: Mon, 9 Jan 2006 11:24:02 +0000 Subject: [PATCH] As hotplug events are asynchronous by its nature, the remove event seems to be missed in some environments. This patch adds a sleep (with the same amount of time of the one after xm block-detach) between attach and detach operations, giving attach enough time to complete, making test 06 suceed. Signed-off-by: Glauber de Oliveira Costa --- .../tests/block-destroy/06_block-destroy_check_list_pos.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py b/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py index bc41be984e..7f1c7cd453 100644 --- a/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py +++ b/tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py @@ -46,6 +46,8 @@ if not checkBlockList(domain): if not checkXmLongList(domain): FAIL("xm long list does not show that hda1 was attached") +time.sleep(2) + s, o = traceCommand("xm block-detach %s hda1" % domain.getName()) if s != 0: FAIL("block-detach failed") -- 2.30.2